#include "StdAfx.h"
#include "UIFont.h"
#include <shtypes.h>

namespace DirectUI
{
	CUIFont::CUIFont(void)
	{

	}

	CUIFont::CUIFont( LPCTSTR lpName, LPCTSTR lpFamilyName, float femSize, BOOL bBold, BOOL bItalic, BOOL bUnderline, BOOL bStrikeout, LPCTSTR lpUnit )
	{
		SetFont(lpName, lpFamilyName, femSize, bBold, bItalic, bUnderline, bStrikeout, lpUnit);
	}

	CUIFont::~CUIFont(void)
	{

	}

	void CUIFont::SetFont( LPCTSTR lpName, LPCTSTR lpFamilyName, float femSize, BOOL bBold, BOOL bItalic, BOOL bUnderline, BOOL bStrikeout, LPCTSTR lpUnit )
	{
		m_szName			= lpName;
		m_szFamilyName		= lpFamilyName;
		m_fSize				= femSize;
		m_bBold				= bBold;
		m_bItalic			= bItalic;
		m_bUnderline		= bUnderline;
		m_bStrikeout		= bStrikeout;
		m_szUnit			= lpUnit;
	}

	LPCTSTR CUIFont::GetFamilyName()
	{
		return m_szFamilyName;
	}

	float CUIFont::GetSize()
	{
		return m_fSize;
	}

	LPCTSTR CUIFont::GetUnit()
	{
		return m_szUnit;
	}

	BOOL CUIFont::IsBold()
	{
		return m_bBold;
	}

	BOOL CUIFont::IsItalic()
	{
		return m_bItalic;
	}

	BOOL CUIFont::IsUnderline()
	{
		return m_bUnderline;
	}

	BOOL CUIFont::IsStrikeout()
	{
		return m_bStrikeout;
	}

	LPCTSTR CUIFont::GetName()
	{
		return m_szName;
	}
};